import request from '/@/utils/request';

// 查询微信提现记录列表
export function listRecord(query?: Object) {
  return request({
    url: '/module/cash/record/list',
    method: 'get',
    params: query
  })
}

// 查询微信提现记录详细
export function getRecord(id?: number) {
  return request({
    url: '/module/cash/record/' + id,
    method: 'get'
  })
}

// 新增微信提现记录
export function addRecord(data?: Object) {
  return request({
    url: '/module/cash/record',
    method: 'post',
    data: data
  })
}

// 修改微信提现记录
export function updateRecord(data?: Object) {
  return request({
    url: '/module/cash/record',
    method: 'put',
    data: data
  })
}

// 删除微信提现记录
export function delRecord(id?: number) {
  return request({
    url: '/module/cash/record/' + id,
    method: 'delete'
  })
}

// 导出微信提现记录
export function exportRecord(query?: Object) {
  return request({
    url: '/module/cash/record/export',
    method: 'get',
    params: query
  })
}
